package com.ying.consumer10001.fegin;

import com.ying.consumer10001.domain.DoMain;
import com.ying.consumer10001.pack.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "PROVIDER",fallbackFactory = ProvFallBackFactory.class)
public interface Provider9001Fegin {
    @GetMapping("/prov/get/{id}")
    R getdomain(@PathVariable Long id);

    @GetMapping("/prov/delete/{id}")
    R deletedomain(@PathVariable Long id);

    @PostMapping("/prov/update")
    R updatedomain(DoMain doMain);

    @PostMapping("/prov/insert")
    R insertdomain(DoMain doMain);
}
